package com.atguigu.gmall.pay.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Data
@ConfigurationProperties(prefix = "app.pay.alipay")
public class AlipayProperties {
   private  String app_id = "2021000122602533";

    // 商户私钥，您的PKCS8格式RSA2私钥
    private  String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCSx84Joa5ADbIJbZcGP23ASBvZTU+Uh9XedU8aD9E0rU9SvaOD9k/lzYqSTAJ1jerXB+8MC7eIrB5NzQzRUwQJ6UgRv3nGNjZKHVyCDzbkftsTSA3enpCfpB2P4xGMc+8sPN6ozTgo/wncPZomiGu1OH0kmziPV/BdUdChPF2jXhVhfhHBNO+37yacT6Cn9Nc6mAsW+S4qc4E37OLYN77j785X+MTwd8/CvcTGgyADTSbiQecFK2MRBQThP38jH82hfBco2swu5V2B08egc6K3tvsihSQQfJm7XcVw+Q6IOqkfRYnWoS1sdqfQ8Wi8wSIn6R/bCyl/AFORnfF4HT7DAgMBAAECggEAOQYg+ML0hHQNp/YIh2fbBqm9EAYmFalUIHHowlJEz7dJKvb78MefsMLSxBV9mxgAlXvCliZzLkjYGRfBlA0xc3xLAIIoGCZ1nwObLfglNk5GZE5I/SUTQMIsrfrklXFxCPm481GPMPYsaYERQ0katzP0AmW/aokam9auPAXMxyur8j3PYKjtHyJ/AufUAdyhxWQxAV9C4UEp+rv3ko5gEG3LbBu1DbSxzwC2/AgPhnMrkoy1hsWrNmmuc62IEQRbVHkgFno+y0H5vOqMpddjMoc4Y2jIdMCsysGsu/qO0VRA2umBIqqU4XXDEfKONuY07b/SjrAE99nwihhmYvGpyQKBgQDoyxG0OdgATZ5r3aIWQW3fTvwB2aifC8Ue1eDCNL6faCCM/Z78QPxcBsNQbmcr8lBJuLOR6CYc2gRYNZLKCjKBJIcSeH0Cym9ViSVyJ3aAy/9w9+b8sQsHjZAdYnpWcRMiVRsgtobkhH4bPVY6PnfoT60BNH2BDDpNgj+WTfBijwKBgQChaaw51In99rOQjT223XJPWEUXDIHLOyfFZD/3RMogaR6Y+sz1KbA0D8SfT1x6aSOxzLgWo6t07XwJIQgyXK47nkNtrthCSznx5xUi7JswuNOSoEjz2QMtGINZHIc8xaGMFjmc2sTgJZvw5OlQcW6ZwYEAK4UBJCXFBs18FHyqjQKBgC0mjbV97pYId+yF3RUh9ZR1Nk2JkLngR4g2hVRFdJ9oS7/sxPQ6Cngy25jzANG2OrpBt5paA2JfKq6NHX5QQgFoO0Zq1hw/dR6K7hdY7hQG/PFFM6jZEcGSRFxeqEmxvrtO9GcA3+Lci7TuzZWYXhtRsMVmD92CqKA13e1iCnijAoGAPXtl2aVGZpEItp/GCRhyiRyDPJNMASBoNrzHzKTMJOpFeFnXpe6aKkpzR4dQH2Ra70eeOylejqxC2atWVvCMgTL4VhgKUb4btTOjDml3d2h/VlNtVkyr9AppRZEjRhe1QAnbKg7+fK52ppxa7oQ2b6SQQYNSJywgotrDfGbFUaUCgYEAsQP2Qhdy2grsXA4kfKP+Zjd65jaf1UUqyini21iGH5PZY1XcFqchqaf9sTjhDGLOtODIf/nFVsQsIazaYxB7VW1qBGJWN5MlMQWEaZWOfnmJY11nbPlhgcASXczSGh7e9y2CRlzTNigD3xcc0uBL5X7KZs9KSg0CYC1hLmMnsX0=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    private   String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnV+C3BKJIomMQSyzYcO7P+sAOY8LNuTGGdYtHk+P4XQOXFbm0f9K/x0vAjyaz57T8uAHIh8dh4W8l/jzERi+JFz94a0LvNDu+7neXbML7mWySPIMx1WD5vf/VcMqGBvxwC8HHyvQHaiKM7stZiyv7ucG4FI964sgRjTw1ocyWCIdvERXTPzR4WQRqAVVjf4FAd1ygk92OXpPQkHcByHA1Y6FPcAOkm7zhBCPk0wkieVHupwfK4DwrC6pXomTCNO2Op6sgFaCfPmyOnZ/8dz+ugvXSvY23fqTSCAu2H5S1QQcytohVE/Vysmj3SjGGfaDR4YRbcfXDT2a38AuWWVtVQIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    private String notify_url = "http://工程公网访问地址/alipay.trade.page.pay-JAVA-UTF-8/notify_url;.jsp";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    private  String return_url = "http://localhost:8080/paymentDemo_Web_exploded/return_url.jsp";

    // 签名方式
    private   String sign_type = "RSA2";

    // 字符编码格式
    private   String charset = "utf-8";

    // 支付宝网关
    private   String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";


}


